package com.simplecontact.classes;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class HelloItemizedOverlay extends ItemizedOverlay {

	  private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
			
	  public HelloItemizedOverlay(Drawable arg0) {
	    super(boundCenter(arg0));		
	  }

	  public void addOverlay(OverlayItem overlay) 
	  {    
	    mOverlays.add(overlay);    

	    populate();
	  }

	  @Override
	  protected OverlayItem createItem(int arg0) {
	    return mOverlays.get(arg0);		
	  }

	  @Override
	  public int size() {
	    return mOverlays.size();
	  }

}
